package cn.momoshenchi.medicine.service.impl;

import cn.momoshenchi.medicine.util.AssertUtil;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import cn.momoshenchi.medicine.pojo.BaseAccout;
import cn.momoshenchi.medicine.service.BaseAccoutService;
import cn.momoshenchi.medicine.mapper.BaseAccoutMapper;
import org.springframework.stereotype.Service;

/**
 *
 */
@Service
public class BaseAccoutServiceImpl extends ServiceImpl<BaseAccoutMapper, BaseAccout>
implements BaseAccoutService{

    @Override
    public void login(BaseAccout baseAccout)
    {
        AssertUtil.isTrue(!save(baseAccout),"登录失败");
    }
}




